<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>login</title>
    <link href="css/login.css" rel="stylesheet">
    <style>

        #errorMsg {
            text-align: center;
            color: red;
        }
    </style>
</head>

<body>
<div id="loginDiv" style="height: 350px">
    <form action="/loginServlet" method="post" id="form">
        <h1 id="loginMsg">广外学生管理系统</h1>
        <div id="errorMsg">${login_msg}${register_msg}</div>
        <p>用户名:<input id="username" name="username" ${cookie.username.value} type="text"></p>
        <p>密　码:<input id="password" name="password" type="password"></p>
        <p>记　住:<input id="remember" name="remember" value="1" type="checkbox"></p>
        <div id="subDiv">
            <input type="submit" class="button" value="登陆">
            <input type="reset" class="button" value="重置">&nbsp;&nbsp;&nbsp;
            <a href="register.html">没有账号？</a>
        </div>
    </form>
</div>
</body>

</html>
